package com.multithreading.algorithm;

/**
 * @author zx
 * @version 1.0
 * @package_name: com.multithreading.algorithm
 * @date 2024/6/19 16:37
 */
public class Array_test004 {
    public static void main(String[] args) {
        int[] array1, array2;

        array1 = new int[]{2, 3, 5, 7, 11, 13, 17, 19};
        for (int array : array1) {
            System.out.print(array + " ");
        }
        array2 = array1;
        for (int i = 0; i < array2.length; i++) {
            if (i % 2 == 0) {
                array2[i] = 0;
            }
        }
        System.out.println();

        for (int array : array1) {
            System.out.print(array + " ");
        }
    }
}
